package com.student.system.wapper;

import com.student.system.entity.Teacherregister;
import com.student.system.utils.MD5Utils;

import javax.servlet.http.HttpServletRequest;

public class TeacherRegisterWapper {
    public static Teacherregister teacherRegisterWrapper(HttpServletRequest req){
        Teacherregister teacherregister = new Teacherregister();
        teacherregister.setUserName(req.getParameter("userName"));
        teacherregister.setPhone(req.getParameter("phone"));
//        MD5Utils.md5plus
        teacherregister.setPassword((req.getParameter("password")));
        return teacherregister;
    }
}
